package com.mytrip.model;

import com.mytrip.base.annotation.model.Entity;

/**
 *  map
 * @author xz
 *
 */
@Entity(id = "id")
public class RoleModule extends BaseModelAdapter {

	private static final long serialVersionUID = -8886879177084500411L;

	public static final int MODULE_READ = 0;
	public static final int MODULE_WRITE = 1;
	
	private Long id;

	private Role role;

	private Module module;

	private Integer isSubModule;

	private int moduleReadWrite;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Module getModule() {
		return module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public Integer getIsSubModule() {
		return isSubModule;
	}

	public void setIsSubModule(Integer isSubModule) {
		this.isSubModule = isSubModule;
	}

	public int getModuleReadWrite() {
		return moduleReadWrite;
	}

	public void setModuleReadWrite(int moduleReadWrite) {
		this.moduleReadWrite = moduleReadWrite;
	}

}